home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times - Parent Power 2007
/
The Sunday Times - Parent Power 2007.iso
/
pc
/
engine
/
feature_homepage.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2006-10-05
|
1KB
|
51 lines
function init()
{
assignFeatureBtnHandlers();
}
function assignSchoolsBtnHandlers()
{
var _loc2_ = this;
var _loc3_ = 6;
var _loc1_ = 1;
while(_loc1_ <= _loc3_)
{
_loc2_["btnSchools" + _loc1_].schoolNum = _loc1_;
_loc2_["btnSchools" + _loc1_].onPress = function()
{
_parent.movie_load("school" + this.schoolNum + ".swf");
};
_loc2_["btnSchools" + _loc1_].onRollOver = function()
{
this._parent.gotoAndStop(this.schoolNum + 3);
};
_loc2_["btnSchools" + _loc1_].onRollOut = function()
{
this._parent.gotoAndStop(3);
};
_loc1_ = _loc1_ + 1;
}
}
function assignFeatureBtnHandlers()
{
var _loc2_ = this;
var _loc3_ = 5;
var _loc1_ = 1;
while(_loc1_ <= _loc3_)
{
_loc2_["btnFeature" + _loc1_].featureNum = _loc1_;
_loc2_["btnFeature" + _loc1_].onPress = function()
{
_parent.movie_load("feature" + this.featureNum + ".swf");
};
_loc2_["btnFeature" + _loc1_].onRollOver = function()
{
this._parent.gotoAndStop(this.featureNum + 3);
};
_loc2_["btnFeature" + _loc1_].onRollOut = function()
{
this._parent.gotoAndStop(3);
};
_loc1_ = _loc1_ + 1;
}
}